home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / gfx / 3d / irit50src.lha / irit5 / prsr_lib / ip_fatal.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-10  |  1.5 KB  |  33 lines

  1. /*****************************************************************************
  2. * Default fatal error handler for the irit parser.                 *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 0.2, April 1993  *
  5. *****************************************************************************/
  6.  
  7. #include <stdio.h>
  8. #include "irit_sm.h"
  9. #include "iritprsr.h"
  10. #include "allocate.h"
  11. #include "attribut.h"
  12.  
  13. /*****************************************************************************
  14. * DESCRIPTION:                                                               M
  15. * Default trap for Irit parser errors.                         M
  16. *   This function prints the provided error message anddies.             M
  17. *                                                                            *
  18. * PARAMETERS:                                                                M
  19. *   Msg:      Error message.                                                 M
  20. *                                                                            *
  21. * RETURN VALUE:                                                              M
  22. *   void                                                                     M
  23. *                                                                            *
  24. * KEYWORDS:                                                                  M
  25. *   IritPrsrFatalError , error handling                                      M
  26. *****************************************************************************/
  27. void IritPrsrFatalError(char *Msg)
  28. {
  29.     fprintf(stderr, "IP: %s\n", Msg);
  30.  
  31.     exit(-1);
  32. }
  33.